{extend name="frameset" /}

{block name="frameset-link"}
{__block__}
<link rel="stylesheet" href="__static__/admin/css/nav.css">
<link rel="stylesheet" href="__static__/admin/css/articles.css">
{/block}

{block name="main"}

<div class="articles">
  {volist name="articles" id="article"}
  <div class="article-box">
    <div class="article">
      <h4 class="title">{$article.title}</h4>
      <div class="article-att">
        {$username} &nbsp; {$article["create_time"] | date="Y-m-d H:i:s", ###}
      </div>
      <div class="content">
        {$article.content}
      </div>
    </div>
    <div class="operate-btn-box">
      <a href="{:url('admin/index/deleteArticle')}?id={$article.id}" class="button edit">Delete</a>
      <a href="{:url('admin/index/update_article')}?id={$article.id}"  class="button uodate">Update</a>
    </div>
  </div>
  {/volist}
</div>

{/block}